<!DOCTYPE HTML>
<html>
<head>
    <include file="Common:header_include"/>
    <title>数据表版本信息列表</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 数据表信息管理 <span class="c-gray en">&gt;</span> 数据表信息列表
    <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新">
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="pd-10">
    <div class="cl pd-5 bg-1 bk-gray" >
        <if condition="!I('get.del')">
            <span class="l">
                <a href="javascript:;" onclick="delectCheck('{:U('del')}',$('.item'))" class="btn btn-danger radius">
                        <i class="Hui-iconfont">&#xe6e2;</i> 批量删除
                </a>
                <!--<a href="javascript:;" onclick="showIframe('添加血型','{:U('showAdd')}',500,500)" class="btn btn-primary radius">-->
                <!--<i class="Hui-iconfont">&#xe600;</i> 添加数据表更新-->
                <!--</a>-->
            </span>
            <else/>
            <a href="javascript:;" onclick="delectCheck('{:U('deleted')}',$('.item'))" class="btn btn-danger radius">
                <i class="Hui-iconfont">&#xe6e2;</i> 批量彻底删除
            </a>
        </if>
       <span class="l" style="margin-left:14px;">
                <label>检查单过滤：</label>
                <span class="select-box inline">
                    <select name="pid"  id="typeid" class="select selects" onchange="reload();" style="width: 100px">
                        <option value="">全部</option>
                         <volist name=":getLists(inspectioninfo)" id="v">
                             <option value="{$v['id']}"  <if condition="$v['id'] eq $_GET['indexid']">selected</if>>{$v['name']} </option>
                         </volist>
                    </select>
                </span>
         </span>
    </div>

    <div class="mt-10">
        <select name="select" id="selects"  onchange="reload()" style="width: 80px;height: 25px;">
            <option value="10"  <if condition="$_GET['selects'] eq 10">selected</if>>显示10条</option>
            <option value="20"  <if condition="$_GET['selects'] eq 20">selected</if> <if condition="empty($_GET['selects'])">selected</if>>显示20条</option>
            <option value="30"  <if condition="$_GET['selects'] eq 30">selected</if>>显示30条</option>
            <option value="40"  <if condition="$_GET['selects'] eq 40">selected</if>>显示40条</option>
            <option value="50"  <if condition="$_GET['selects'] eq 50">selected</if> >显示50条</option>
        </select>
        <table class="table table-border table-bordered table-hover table-bg">
            <thead>
            <tr class="text-c">
                <th width="25"><input type="checkbox"></th>
                <th width="30">ID</th>
                <th width="100">用户</th>
                <th width="100">检查单</th>
                <th width="130">内容</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="data">
                <tr class="text-c" >
                    <td><input type="checkbox" value="{$data.id}" class="item"></td>
                    <td>{$data.id}</td>
                    <td>{$data.user.name}</td>
                    <td>{$data.inspectioninfo.name}</td>
                    <td>{$data.content}</td>
                    <td class="td-manage">
                        <if condition="I('get.del')">
                            <a title="恢复" href="javascript:;" onclick="recover('{:U('recover',array('id'=>$data['id']))}',this)" class="ml-5" style="text-decoration:none">
                                <i class="Hui-iconfont">&#xe6e1;</i> 恢复
                            </a>
                            <a title="彻底删除" href="javascript:;" onclick="delectOne('{:U('deleted',array('id'=>$data['id']))}',this)" class="ml-5" style="text-decoration:none">
                                <i class="Hui-iconfont">&#xe6e2;</i>彻底删除
                            </a>
                            <else/>
                            <!--<a title="编辑" href="javascript:;" onclick="showIframe('编辑','{:U('showEdit',array('id'=>$data['id']))}',600,600)" class="ml-5" style="text-decoration:none">-->
                            <!--<i class="Hui-iconfont">&#xe6df;</i> 编辑-->
                            <!--</a>-->
                            <a title="删除" href="javascript:;" onclick="delectOne('{:U('del',array('id'=>$data['id']))}',this)" class="ml-5" style="text-decoration:none">
                                <i class="Hui-iconfont">&#xe6e2;</i> 删除
                            </a>
                        </if>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
        <div class="page">{$page}</div>
    </div>
</div>
<include file="Common:footer_include"/>
<script>
   function reload() {
        var selects = $("#selects option:selected").val();
        var indexid = $("#typeid  option:selected").val();
        goUrl('?selects=' + selects + '&indexid=' + indexid);
    }
</script>
</body>
</html>